/*
 * @Author: xiaosihan 
 * @Date: 2024-07-01 23:46:32 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-07-02 02:44:58
 */

import { DoubleSide, EquirectangularReflectionMapping, MeshStandardMaterial } from "three";
import envMapPNG from "../../img/envMap.png";
import threeLoader from "three-base/threeLoader";

// 设置全局环境贴图
const envMap = threeLoader.getTexture(envMapPNG);
envMap.mapping = EquirectangularReflectionMapping;

// 车身材质
export const carBodyMaterial = new MeshStandardMaterial({
    color: "#00ff00",
    metalness: 0.9, // 金属度，1.0是完全的金属效果  
    roughness: 0, // 粗糙度，0.0是完全光滑，1.0是非常粗糙  
    side: DoubleSide,
    envMap
});